package com.example.p1;

public class Main {
    public static void main(String[] args) {
        String str="this is Java";
        System.out.println(removeChar(str,3));
    }
    public static String removeChar(String s,int pos){
        return s.substring(0,pos)+s.substring(pos+1);
    }

}
